/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package toybox.behavioral.command;

/**
 *
 * @author BuccatR
 */
public class Switch {

    private Command flipUpCommand;
    private Command flipDownCommand;

    public Switch(Command flipUpCommand, Command flipDownCommand) {
        this.flipUpCommand = flipUpCommand;
        this.flipDownCommand = flipDownCommand;
    }

    public void flipUp() {
        this.flipUpCommand.execute();
    }

    public void flipDown() {
        this.flipDownCommand.execute();
    }
    
}
